<?php
namespace PsiFramework\Classes\Util\Parameters;

import("Classes.Util.HTTP.AuthenticationManager");
import("Classes.Util.Parameters.Parameters");
import("Classes.Util.Object.EMail");
import("Classes.Util.Manager.ParametersManager");

use \PsiFramework\Classes\Util\HTTP\AuthenticationManager;
use \PsiFramework\Classes\Util\Parameters\Parameters;

/**
 * PsiFramework
 * Php Simple Framework
 *
 * @author Rémi San
 * @version beta
 */

/**
 * The ApplicationsParameters class is the class to manage
 * applications parameters
 *
 * @package Util.Parameters
 */
class ApplicationsParameters extends Parameters
{

    public function __construct(/*array*/ $parameters=null)
    {
        parent::__construct($parameters);

        AuthenticationManager::$timeOut = $this->getTimeOut();
    }

    public function getDefaultApplication()
    {
        return $this->_parameters["defaultApplication"] ;
    }

    public function getDefaultLanguage()
    {
        return $this->_parameters["defaultLanguage"] ;
    }

    public function getCaptchaPublicKey()
    {
        return $this->_parameters["captchaPublicKey"] ;
    }

    public function getCaptchaPrivateKey()
    {
        return $this->_parameters["captchaPrivateKey"] ;
    }

    public function getContact()
    {
        return $this->_parameters["contact"] ;
    }

    public function getTimeOut()
    {
        return $this->_parameters["timeout"] ;
    }

}
